package com.xisoft.generator.entity;


import com.xisoft.generator.config.TemplateConfig;

import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.List;

/**
 * @author xzh
 * @Date 2021/8/16
 * @description 基础模板
 * 注意：本内容仅限于上海熙软科技有限公司内部，传阅，禁止外泄以及用于其他商业目的
 */
public class BaseModel
{
    public static final SimpleDateFormat sdf = new SimpleDateFormat("yyyyMMdd");

    public BaseModel( )
    {

        super();
        this.createAt = sdf.format(new Date());
    }

    public TemplateConfig templateConfig;
    public String base_path;
    /**
     * 模块名
     */
    public String modelName;

    /**
     * 服务名
     */
    public String serviceName;

    /**
     * 表名
     */
    public String tablename;

    /**
     * 包名，例：com.yss.ds.headoffice.vo
     * vo的包名
     */
    public String packageName;

    /**
     * 包名，例：com.yss.ds.headoffice.vo
     * bo的包名
     */

    public String basePackageName;
    /**
     * 数据库表名（可选）
     */
    public String dName;
    /**
     * vo对应的名称===========================这个属性很重要，类的'名称'基本都已它为主=============
     */
    public String vName;
    public String subPackageName;
    /**
     * 作者
     */
    public String author;

    /**
     * 备注
     */
    public String COMMENTS;

    /**
     * 创建时间
     */
    public String createAt;

    /**
     * 当前项目的MANIFEST.MF文件中Web-ContextPath的值
     **/
    public String contextPath;

    /**
     * I18文件的文件夹名称
     **/
    public String i18name;

    /**
     * 模块FORM页面的标题
     **/
    public String titlename;
    public String unicode_titlename;

    public List< Column > columns;

    private Table table;

    public Table getTable( )
    {

        return table;
    }

    public void setTable(Table table)
    {

        this.table = table;
    }

    public List< Column > getColumns( )
    {

        return columns;
    }

    public void setColumns(List< Column > columns)
    {

        this.columns = columns;
    }

    public String getPackageName( )
    {

        return packageName;
    }

    public void setPackageName(String packageName)
    {

        this.packageName = packageName;
    }

    public String getdName( )
    {

        return dName;
    }

    public void setdName(String dName)
    {

        this.dName = dName;
    }

    public String getvName( )
    {

        return vName;
    }

    public void setvName(String vName)
    {

        this.vName = vName;
    }

    public String getSubPackageName( )
    {
        return subPackageName;
    }

    public void setSubPackageName(String vName)
    {
        this.subPackageName = vName;
    }

    public String getAuthor( )
    {

        return author;
    }

    public void setAuthor(String author)
    {

        this.author = author;
    }

    public String getCOMMENTS( )
    {

        return COMMENTS;
    }

    public void setCOMMENTS(String cOMMENTS)
    {

        COMMENTS = cOMMENTS;
    }

    public String getCreateAt( )
    {

        return createAt;
    }

    public void setCreateAt(String createAt)
    {

        this.createAt = createAt;
    }


    /**
     * @return the contextPath
     */
    public String getContextPath( )
    {

        return contextPath;
    }

    /**
     * @param contextPath the contextPath to set
     */
    public void setContextPath(String contextPath)
    {

        this.contextPath = contextPath;
    }

    /**
     * @return the i18name
     */
    public String getI18name( )
    {
        return i18name;
    }

    /**
     * @param i18name the i18name to set
     */
    public void setI18name(String i18name)
    {
        this.i18name = i18name;
    }

    /**
     * @return the titlename
     */
    public String getTitlename( )
    {
        return titlename;
    }

    /**
     * @param titlename the titlename to set
     */
    public void setTitlename(String titlename)
    {
        this.titlename = titlename;
    }


    public String getTablename( )
    {
        return tablename;
    }

    public void setTablename(String tablename)
    {
        this.tablename = tablename;
    }

    public String getBasePackageName( )
    {
        return basePackageName;
    }


    public void setBasePackageName(String basePackageName)
    {
        this.basePackageName = basePackageName;
    }


    public String getUnicode_titlename( )
    {
        return unicode_titlename;
    }


    public void setUnicode_titlename(String unicode_titlename)
    {
        this.unicode_titlename = unicode_titlename;
    }

    public String getModelName( )
    {
        return modelName;
    }

    public void setModelName(String modelName)
    {
        this.modelName = modelName;
    }

    public String getServiceName( )
    {
        return serviceName;
    }

    public void setServiceName(String serviceName)
    {
        this.serviceName = serviceName;
    }


}
